Skip to main content

Datasource MySQL

Mysql is RDBMS (relational database management system), In OPNBI we are connecting datasource using SQL JDBC drivers.

To add the MySQL datasource JDBC driver with OPNBI, follow the steps below:

  • To get the JDBC driver, Go the vendor's end and download the (mysql-connector-java.jar) driver file.

  • Take the mysql-connector-java from vendor

  • After downloading the .jar file, add it into the OPNBI.

  • To add Go to the libreary folder OPNBI\apache-tomcat-8.5.61\webapps\OPNBI\WEB-INF\lib folder and add the .jar file here.

Connecting MySQL Datasource with OPNBI

  1. Go to the Master data section and click on Data Source, as shown in the figure below:

Docusaurus Slash Introduction

  1. Click on Create button from the bottom horizontal menu bar from Datasource section, as shown in the figure below:

Docusaurus Slash Introduction

  1. The Create Datasource window will open, as shown in the figure below:

Docusaurus Slash Introduction

  1. Search for MySQL data source from Top-right search bar in Datasource section, as shown in the figure below:

Docusaurus Slash Introduction

  1. Click on MySQL to create a data source using MySQL.

Docusaurus Slash Introduction

  1. As you click on MySQL, the create dialog box will pop-up on screen, as shown in the figure below:

Docusaurus Slash Introduction

  1. Insert the following data in the Datasource connection Dialog box:-
  • • Enter Display Name: TrainingOPNBI_SQL [You can add name as per your requirements]
  • • Enter Class: com.mysql.jdbc.Driver
  • • Enter Connection URL: jdbc:mysql://localhost:3306/trainingOPNBI
  • • Enter Username: root [Insert your username]
  • • Enter Password: [Enter your respective MySQL password]
  • • Verify added info, as shown in the figure below:

Docusaurus Slash Introduction

  1. Click on Test Connection Button to Check Database Connection, after Connection Successful, it should look like the following figure:

Docusaurus Slash Introduction

  1. Click on the ok and save button to close the Dialog box, The Created Successfully alert will pop-up on screen.

Docusaurus Slash Introduction

Now create a dataset after connecting the Datasource, click the link below:

Create dataset in OPNBI